Skip to content

Conversation

@thomasorgeval
Copy link
Owner

This commit introduces a caching mechanism for trip retrieval to improve performance and reduce API calls.

The cache stores the last used redirect link for each domain and is reset daily at midnight.

A new cache structure with a mutex for thread-safe operations is implemented. The HTTP handler is updated to check the cache before fetching trip data, and a goroutine is started to handle the daily cache reset.

This commit introduces a caching mechanism for trip retrieval to improve performance and reduce API calls.

The cache stores the last used redirect link for each domain and is reset daily at midnight.

A new cache structure with a mutex for thread-safe operations is implemented. The HTTP handler is updated to check the cache before fetching trip data, and a goroutine is started to handle the daily cache reset.
@thomasorgeval thomasorgeval merged commit 7bba14e into main Aug 28, 2025
1 check passed
@thomasorgeval thomasorgeval deleted the feat/add-trip-cache branch August 28, 2025 07:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant